package cn.edu.whu.irlab.service.impl;

import cn.edu.whu.irlab.dao.UserQuestionConcernMapper;
import cn.edu.whu.irlab.model.UserQuestionConcern;
import cn.edu.whu.irlab.model.UserQuestionConcernKey;
import cn.edu.whu.irlab.service.UserQuestionConcernService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Roger on 2016/8/5.
 */
@Service
public class UserQuestionConcernServiceImpl implements UserQuestionConcernService {

    @Autowired
    private UserQuestionConcernMapper uqcMapper;

    @Override
    public int deleteByPrimaryKey(UserQuestionConcernKey key) {
        return uqcMapper.deleteByPrimaryKey(key);
    }

    @Override
    public int insert(UserQuestionConcern record) {
        return uqcMapper.insert(record);
    }

    @Override
    public int insertSelective(UserQuestionConcern record) {
        return uqcMapper.insert(record);
    }

    @Override
    public UserQuestionConcern selectByPrimaryKey(UserQuestionConcernKey key) {
        return uqcMapper.selectByPrimaryKey(key);
    }

    @Override
    public int updateByPrimaryKeySelective(UserQuestionConcern record) {
        return uqcMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UserQuestionConcern record) {
        return uqcMapper.updateByPrimaryKey(record);
    }
}
